package com.taomus.mytools.simplec.common;

import java.util.Stack;

public final class Label {
	private final static Stack<Token> l = new Stack<>();
	private static int num = 0;
	
	public static Token create(){
		Token temp = new Token(WordEnum.LABEL,"label_"+ num ++);
		l.push(temp);
		return temp;
	}
	public static Token peek(){
		return l.peek();
	}
	public static Token pop(){
		return l.pop();
	}
	public static boolean isEmpty(){
		return l.isEmpty();
	}
	
}
